#include<iostream>
using namespace std;
int add(int x,int y)
{
	return x + y;
}
//int (*pf)(int ,int) <==> int pf(int ,int)
//int ret = pf(a,b) <==> int ret = (*pf)(a,b) <==> int ret = add(a,b) <==> int ret = (*add)(a,b)
void calc(int (*pf)(int ,int))
{
	int a = 3;
	int b = 5;
	int ret = pf(a,b);
    cout<<ret<<endl;
}
int main()
{
	calc(add);
	return 0;
}